import { request } from '../request'
import { apiProxy } from '../../config'
const prefix = apiProxy.java.main
// 支付宝授权
export function getAppCode (data) {
  return request({
    url: prefix + '/public/miniPLogin',
    type: 'get',
    params: data || {}
  })
}
// 登录信息-个人信息
export function uUserInfo (data) {
  return request( {
    url: prefix + '/wallet/index',
    type: 'GET',
    params: data || {}
  })
}
// 订单支付平台支付
export function submitPayment (data) {
  return request({
    url: prefix + '/pay/union_pay',
    type: 'get',
    params: data || {}
  })
}
// 用户收藏状态
export function saveStartCollectionStatus (data) {
  return request({
    url: prefix + '/front/sc_notify',
    type: 'GET',
    params: data || {}
  })
}
// 用户点击收藏
export function goCollection (data) {
  return request({
    url: prefix + '/front/sc',
    type: 'post',
    params: data || {}
  })
}